<?php

namespace App\Http\Controllers\Common;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class ArrayController extends Controller
{
    public $homeLogType = [];   //存储前台日志类型数组
    public $adminLogType = [];  //存储后台日志类型数组
    /**
     * [__construct 实例化调用]
     */
    public function __construct()
    {
        // 调用类型函数
        $this->adminLogType();
        $this->HomeLogType();
    }

    /**
     * [adminLogType description]
     * @author LiYongHeng <[616649679@qq.com]>
     * @return [array] [后台日志类型函数]
     */
    protected function adminLogType()
    {
         return $this->adminLogType = [
            1 => '登录',
            2 => '修改权限',
            3 => '编辑管理员',
            4 => '添加管理员',
            5 => '添加角色',
            6 => '修改角色',
            7 => '注销',
            8 => '修改密码',
            9 => '系统设置',
            10 => '添加积分商品',
            11 => '修改积分商品',
            12 => '添加友情链接',
            13 => '修改友情链接',
            14 => '删除友情链接',
        ];
    }

    /**
     * [HomeLogType description]
     * @author LiYongHeng <[616649679@qq.com]>
     * @return [array] [前台日志类型函数]
     */
    protected function HomeLogType()
    {
        return $this->homeLogType = [
            1 => '登录',
            2 => '注册',
            3 => '提交订单',
            4 => '修改个人资料',
        ];
    }
}
